package com.blocks.model;

public enum HUDSlots {
	ONE, TWO, THREE, FOUR, FIVE, SIX, SEVEN, NINE;

	public static HUDSlots getNextHUDSlots(HUDSlots hUDSlots, boolean negative) {
		if (negative) {
			boolean useNext = false;
			for (int x = HUDSlots.values().length-1; x >= 0; x--) {
				HUDSlots indexHUD = HUDSlots.values()[x];
				if (useNext) {
					return indexHUD;
				}
				if (indexHUD.equals(hUDSlots)) {
					useNext = true;
				}
			}
			return HUDSlots.NINE;
		} else {
			boolean useNext = false;
			for (HUDSlots indexHUD : HUDSlots.values()) {
				if (useNext) {
					return indexHUD;
				}
				if (indexHUD.equals(hUDSlots)) {
					useNext = true;
				}
			}
			return HUDSlots.ONE;
		}

	}
}
